﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ItemsPickReturn.aspx.cs" Inherits="RLRT.Web.ItemsPickReturn" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>杂项领用与料品报废</title>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Page">
            <div class="Title">
                <asp:Label ID="PageTitle" runat="server" Text="杂项领用"></asp:Label>
            </div>
            <div class="Operating">
                <ul>
                    <li class="Caption">仓库
                    </li>
                    <li class="Content">
                        <asp:DropDownList ID="WhCode" runat="server" CssClass="Required"></asp:DropDownList>
                    </li>
                    <li class="Caption">
                        <asp:Label ID="PickNoCaption" runat="server" Text="领料单号"></asp:Label>
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="PickNo" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">工件号码
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="BomNo" runat="server" CssClass="Required" AutoPostBack="True" OnTextChanged="BomNo_TextChanged"></asp:TextBox>
                    </li>
                    <li class="Caption">工件名称
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="BomName" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">规格
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="Spec" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="Caption">材质
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="Material" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">单位
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="UM" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="Caption">备注
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="Remark" runat="server" CssClass=""></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">
                        <asp:Label ID="PickQtyCaption" runat="server" Text="领用数量"></asp:Label>
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="PickQty" runat="server" CssClass="Required Float"></asp:TextBox>
                    </li>
                    <li class="Caption">
                        <asp:Label ID="PickDateCaption" runat="server" Text="领用日期"></asp:Label>
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="PickDate" runat="server" CssClass="Required Date"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Button">
                        <%--  <asp:Button ID="OKButton" runat="server" Text="查询"
                            OnClick="OKButton_Click" />--%>
                        <asp:Button ID="CreateButton" runat="server" Text="<%$ Resources:iiWeb, CreateButton %>"
                            CssClass="Highlighted" OnClick="CreateButton_Click" />
                        <asp:Button ID="DeleteButton" runat="server" Text="<%$ Resources:iiWeb, DeleteButton %>"
                            CssClass="Highlighted" OnClick="DeleteButton_Click" />
                        <asp:Button ID="SaveButton" runat="server" Text="保存"
                            CssClass="Highlighted" OnClick="SaveButton_Click" />
                        <asp:Button ID="CancelButton" runat="server" Text="取消"
                            OnClick="CancelButton_Click" />
                    </li>
                </ul>
            </div>

            <div class="List">
                <asp:GridView ID="List" runat="server" EmptyDataText="<%$ Resources:iiWeb, EmptyData %>" AllowPaging="false"
                    EnableModelValidation="True">
                    <Columns>
                        <asp:TemplateField HeaderText="删除">
                            <%--<HeaderTemplate>
                                <input type="checkbox" id="RowCheckAll" runat="server" class="CheckAll" title="勾选" />
                            </HeaderTemplate>--%>
                            <ItemTemplate>
                                <input type="checkbox" id="RowCheck" runat="server" class="Check" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="序号" HeaderStyle-Width="5%">
                            <ItemTemplate>
                                <asp:Label ID="SEQ" runat="server" Text="<%# Container.DataItemIndex +1%>"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="whcode" HeaderText="仓库代码" />
                        <asp:BoundField DataField="prltno" HeaderText="工件号" />
                        <asp:BoundField DataField="bomnam" HeaderText="工件名称" />
                        <asp:BoundField DataField="bomspec" HeaderText="规格" />
                        <asp:BoundField DataField="bommat" HeaderText="材质" />
                        <asp:BoundField DataField="prlum" HeaderText="单位" />
                        <%--  <asp:BoundField DataField="pickqty" HeaderText="领用数量" />
                        <asp:BoundField DataField="pickdate" HeaderText="领用日期" />--%>
                        <asp:TemplateField HeaderText="领用数量">
                            <ItemTemplate>
                                <asp:TextBox ID="pickqty" runat="server" Text='<%# Eval("pickqty").ToString().Trim() %>' Width="90%" CssClass="Float"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="领用日期">
                            <ItemTemplate>
                                <asp:TextBox ID="pickdate" runat="server" Text='<%# Eval("pickdate").ToString().Trim() %>' Width="90%" CssClass="Date"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="remark" HeaderText="备注" />--%>
                        <asp:TemplateField HeaderText="备注">
                            <ItemTemplate>
                                <asp:TextBox ID="remark" runat="server" Text='<%# Eval("remark").ToString().Trim() %>' Width="90%"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>
